Add a missing semicolon to the hello world program in the docs.
authorjbranchaud <jbranchaud@gmail.com>
Tue, 2 Dec 2014 02:09:44 +0000 (20:09 -0600)
committerjbranchaud <jbranchaud@gmail.com>
Tue, 2 Dec 2014 02:09:44 +0000 (20:09 -0600)
Both the `index.md` and `guide.md` files show the hello world program source
(generated by `cargo new`) without a semicolon (`;`) at the end of the
`println!` line. The file generated by `cargo new` does and should have a
semicolon. This commit brings the docs in sync with the generated code.

src/doc/guide.md
src/doc/index.md

index f6c5a31b3604600460f86e3bc6dc0230e10eda54..1c37d1eab0cc62d103ffb714115ea0e095634849 100644 (file)
@@ -65,7 +65,7 @@ Here's what's in `src/main.rs`:
 
 ```
 fn main() {
-    println!("Hello, world!")
+    println!("Hello, world!");
 }
 ```
 
index 1046141ebeb3ab16776c8c0d60734f8b60a2e29b..91bdf1e799c1d15b71a4b964ae29b776e792100f 100644 (file)
@@ -58,7 +58,7 @@ Here's what's in `src/main.rs`:
 
 ```
 fn main() {
-    println!("Hello, world!")
+    println!("Hello, world!");
 }
 ```